import 'package:json_annotation/json_annotation.dart';
part 'robbit_app_version.g.dart';

@JsonSerializable()
class RobbitAppVersionListResult {
  RobbitAppVersionListResult();

  List<RobbitAppVersionInfoResult> data;

  //不同的类使用不同的mixin即可
  factory RobbitAppVersionListResult.fromJson(Map<String, dynamic> json) =>
      _$RobbitAppVersionListResultFromJson(json);
  Map<String, dynamic> toJson() => _$RobbitAppVersionListResultToJson(this);
}

@JsonSerializable()
class RobbitAppVersionInfoResult {
  RobbitAppVersionInfoResult();

  String apkUrl;
  String apkUuid;
  int createTime;
  String createTimeDesc;
  String deviceName;
  int deviceTypeNo;
  String environment;
  int forceFlag;
  String instruction;
  String patchUrl;
  String productType;
  int toAllUser;
  String version;
  int versionId;
  int versionNo;

  //不同的类使用不同的mixin即可
  factory RobbitAppVersionInfoResult.fromJson(Map<String, dynamic> json) =>
      _$RobbitAppVersionInfoResultFromJson(json);
  Map<String, dynamic> toJson() =>
      _$RobbitAppVersionInfoResultToJson(this);
}
